package com.swl.dao;

import com.swl.pojo.Topic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TopicDao {
    Integer insertTopic(Topic topic);

    List<Topic> selectAllTopic();

    Topic selectTopicByTid(int tid);

    List<Topic> selectTopicBySchoolIdAndCourseId(@Param("schoolId") int schoolId, @Param("courseId")int courseId);

    List<Topic> selectTopicBySchoolIdAndCourseIdAndDiff(@Param("schoolId") int schoolId, @Param("courseId")int courseId, @Param("diff") String diff);
}
